package sjtu.ist.warehouse4ws.dao;

import java.util.List;

import sjtu.ist.warehouse4ws.model.Privilege;
import sjtu.ist.warehouse4ws.tool.ListPage;
public interface PrivilegeDao {

	Privilege get(String id);
	void save(Privilege privilege);
	void update(Privilege privilege);
	void delete(String id);
	void delete(Privilege privilege);
	List<Privilege> findByCompany(String companyId);
	List<Privilege> findByFileInfo(String fileInfoId);
	ListPage getAllPrivileges(int start,int limit);
	ListPage searchPrivilege(String fileName,
			String project, String version, Integer type, String department,
			String companyName,
			String owner,int start,int limit);
	Privilege findByOp(String fileInfoId,String companyId);
}
